<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/view/common/taglibs.jsp"%>
<html>
	<head>
		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
		<title>发票申请-金融风险管理系统</title>
		<script src="${contextPath}/scripts/jquery/jquery-1.8.3.min.js" type="text/javascript"></script>
		<script src="${contextPath}/scripts/common.js" type="text/javascript"></script>
		<script src="${contextPath}/scripts/scriptvalidator.js" type="text/javascript"></script>
		<link href="${contextPath}/styles/default.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript">
		 function display(id){
				window.open("<s:property value='contextPath'/>/mf/apply/billDisplayFin.do?id="+id, "newwindow", "height=800, width=800, toolbar =no, menubar=no, scrollbars=no, resizable=no, location=no, status=no");
			}
		</script>
	</head>
	<body  leftmargin='8' topmargin='8'>
	<div class="navigation">
	    <span><a href="javascript:window.history.back();"><img src="${contextPath}/images/back_nav_btn.png" /></a>
	    <a href="javascript:window.history.back();">返回</a>
	    <a href="javascript:window.history.forward();"><img src="${contextPath}/images/go_nav_btn.png" /></a>
	     <a href="javascript:window.history.forward();">前进</a>
	    <a href="javascript:window.location.reload();"><img src="${contextPath}/images/refresh_nav_btn.png" /></a>
	     <a href="javascript:window.location.reload();">刷新</a>
 	    </span>管理费&gt;&gt;发票详情
    
  	</div>
		<div class="xt_main_right_center">
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td class="left-td-width-bg">
					金融机构：
				</td>
				<td width="30%" class="bline" align="left">
					<s:property value="bill.financial.name"/>
				</td>
				<td class="left-td-width-bg">
					应付总计：
				</td>
				<td width="25%" class="bline" align="left">
					<s:property value="formatAmount(bill.receivableAmount)"/>
				</td>
				<td width="20%" class="bline" align="right">
				<a href="javascript:exBill(${bill.id});"><img src="${contextPath}/images/export.png" alt="导出发票明细" /></a>&nbsp;&nbsp;
				</td>
			</tr>
		</table>
<div class="xt_main_right_center">
	<form name="searchForm"  method="post" id="searchForm" action="billFinancialEdit.do">
	<input type="hidden" name="redirectUrl" value='<s:property value='redirectUrl'/>'/>
	<input type="hidden" name="id" value='<s:property value='bill.id'/>'/>
	<input type="hidden" name="financialId" value='<s:property value='bill.financial.id'/>'/>
		  <table  width="100%" border="0" cellpadding="0" cellspacing="0"    style="border-color:#CCCCCC;"  >
		    <tr>
		      <td align="right" class="left-td-width-bg" >店名：</td>
		      <td align="left"  class="right-td-width-bg-left" >
		      <input  class="input"   type="text" name="shopName" value="${shopName }"  id="shop.shopName"/></td>
		    </tr>
		    <tr style="background:url(${contextPath}/images/xt_main_right_dhbj.jpg) repeat-x;">
		    <td height="28" colspan="4" align="right" style="border-bottom:none;">
		     	<input type="submit" name="button" id="button" class="btn_query" value=""/>
		        <input type="reset" name="button2" onClick="clearForm(this.form);return false;"  class="btn_clear_form"  id="button2" value=""/>  </td>      
		    </tr>
		  </table>
	  </form>
</div>
		<!-- 列表开始 -->	
			<table id="tab" width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
			
			  <tr> 
			    <td width="4%" class="top-td-width-bg">序号</td>
			    <td width="9%" class="top-td-width-bg">店号</td>
			    <td width="9%" class="top-td-width-bg">销售店</td>
			    <td width="10%" class="top-td-width-bg">驻店人员</td>
			    <td width="10%" class="top-td-width-bg">区域经理</td>
			    <td width="10%" class="top-td-width-bg">当月释放数</td>
			    <td width="10%" class="top-td-width-bg">应收金额</td>
			    <td width="10%" class="top-td-width-bg">收取月份</td>
			    <td width="10%" class="top-td-width-bg">备注</td>
			  </tr>
			 <s:iterator value="page.result" status="stx" >
				<tr class="data_tr"  height="26" align="center" bgcolor="#FFFFFF" onmousemove="javascript:this.bgColor='#FCFDEE';" onmouseout="javascript:this.bgColor='#FFFFFF';">
					<td  class="down-center-td-width-bg">
						<s:property value="#stx.index+1"/>
					</td> 
					<td  class="down-center-td-width-bg">
						<s:property value="shop.shopMark"/>
					</td> 
					<td  class="down-center-td-width-bg">
						<s:property value="shop.shopName"/>
					</td> 
					<td  class="down-center-td-width-bg">
						<s:property value="defendName"/>
					</td> 
					<td  class="down-center-td-width-bg">
						<s:property value="managerName"/>
					</td> 
					<td  class="down-center-td-width-bg">
						<s:property value="quantity"/>
					</td> 
					<td  class="down-center-td-width-bg">
						<s:property value="formatAmount(amount)"/>
					</td> 
					<td  class="down-center-td-width-bg">
						<s:if test="operate==2"><a href="javascript:display(<s:property value="id"/>)" ><font color="red"><s:property value="month"/>(预收)</font></a></s:if>
						<s:else><s:property value="month"/></s:else>
					</td> 
					<td  class="down-center-td-width-bg">
						<s:property value="remark"/>
					</td> 
				</tr>
			</s:iterator>
			</table>
	<table width="100%" border="0" cellpadding="0" cellspacing="0"  >
	    <tr>
	      <td height="36" colspan="8" class="down-center-td-width-bg" align="right"><%@ include file="/WEB-INF/view/common/pagination.jsp"%></td>
	    </tr>
   </table>
			<table width="100%" border="0" cellpadding="1" cellspacing="1">
			<tr style="padding-top: 20px">
				<td class="bline" colspan="4" align="center">
					<!-- <input type="button" name="btn_submit_bak" class="btn_qd" onclick="build()" id="save" value=""/> -->
				</td>
			</tr>
			</table>
		</div>
<script language='javascript'>
	function show(id){
		var url ='<s:property value='contextPath'/>/mf/apply/billFinaOptionUpdate.do?billOpenId='+id;
		var searchForm = document.searchForm;
		searchForm.action = url;
		searchForm.submit();
		//	window.open(url, "newwindow", "height=500, width=600, toolbar =no, menubar=no, scrollbars=no, resizable=no, location=no, status=no");
		}
	function jumpPage(page) {
		var searchForm = document.searchForm;
		searchForm.action = "<s:property value='contextPath'/>/mf/apply/billFinancialEdit.do?currentPage=" + page;
		searchForm.submit();
	}
	function add(id) {
		var searchForm = document.searchForm;
		searchForm.action = "<s:property value='contextPath'/>/mf/apply/addbillFinal.do?billId=" + id;
		searchForm.submit();
	}
	function exBill(id) {
		window.location.href = "<s:property value='contextPath'/>/mf/apply/exportBillOpen.do?id=" + id;
	}
</script>
	</body>
</html>